package com.jadesoft.stock.entity;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable{
	
	private static final long serialVersionUID = 1L;

	private Long id;
	
	private String email;//注册
	
	private String password;
	
	private String name;
	
	private String sex;// 0:male 1:female
	
	private String birthday;
	
	private Date registerDate;
	
	private Integer state; //状态码见常量
	
	private String fetionNo;//飞信号
	
	private String mobileNo;//手机号
	
	
	public static final int STATE_REGISTED = 0; //已注册未激活
	public static final int STATE_ACTIVED = 1;  //已激活
	public static final int STATE_FREEZED = 2;  //已冻结

	public String getMobileNo() {
		return mobileNo;
	}

	public void setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
	}

	public String getFetionNo() {
		return fetionNo;
	}

	public void setFetionNo(String fetionNo) {
		this.fetionNo = fetionNo;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public User(String email) {
		super();
		this.email = email;
	}
	
	public User(String email,String password) {
		super();
		this.email = email;
		this.password = password;
	}
	
	public User(String email,String password,Integer state) {
		super();
		this.email = email;
		this.password = password;
		this.state = state;
	}
	
	public User() {
		super();
	}
}
